package com.jsh.service;

import com.jsh.dao.EmailMapper;
import com.jsh.pojo.Email;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class EmailServiceImpl implements EmailService {
    @Autowired
    private EmailMapper emailMapper;

    @Override
    public int deleteByPrimaryKey(Integer emailId) {
        return emailMapper.deleteByPrimaryKey(emailId);
    }

    @Override
    public int insert(Email record) {
        return emailMapper.insert(record);
    }

    @Override
    public Email selectByPrimaryKey(Integer emailId) {
        return emailMapper.selectByPrimaryKey(emailId);
    }

    @Override
    public List<Email> selectAll() {
        return emailMapper.selectAll();
    }

    @Override
    public int updateByPrimaryKey(Email record) {
        return emailMapper.updateByPrimaryKey(record);
    }
}
